class AreaBean {
  bool success;
  String message;
  int code;
  List<Area> result;
  int timestamp;

  AreaBean(
      {this.success, this.message, this.code, this.result, this.timestamp});

  AreaBean.fromJson(Map<String, dynamic> json) {
    success = json['success'];
    message = json['message'];
    code = json['code'];
    if (json['result'] != null) {
      result = new List<Area>();
      json['result'].forEach((v) {
        result.add(new Area.fromJson(v));
      });
    }
    timestamp = json['timestamp'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['success'] = this.success;
    data['message'] = this.message;
    data['code'] = this.code;
    if (this.result != null) {
      data['result'] = this.result.map((v) => v.toJson()).toList();
    }
    data['timestamp'] = this.timestamp;
    return data;
  }
}

class Area {
  int id;
  String areaName;
  String labelCode;
  var lat;
  var lon;
  String clockInNumber;
  var clockTime;
  int checkId;
  int areaId;
  int clocking;
  String clockingStr;
  int isDone;
  var doneTime;
  String isDoneStr;
  int inspectorId;
  String checkUser;
  String checkUserName;
  int checkType;
  String doneImageUrl;

  Area(
      {this.id,
        this.areaName,
        this.labelCode,
        this.lat,
        this.lon,
        this.clockInNumber,
        this.clockTime,
        this.checkId,
        this.areaId,
        this.clocking,
        this.clockingStr,
        this.isDone,
        this.doneTime,
        this.isDoneStr,
        this.inspectorId,
        this.checkUser,
        this.checkUserName,
        this.checkType,
      this.doneImageUrl});

  Area.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    areaName = json['areaName'];
    labelCode = json['labelCode'];
    lat = json['lat'];
    lon = json['lon'];
    clockInNumber = json['clockInNumber'];
    clockTime = json['clockTime'];
    checkId = json['checkId'];
    areaId = json['areaId'];
    clocking = json['clocking'];
    clockingStr = json['clockingStr'];
    isDone = json['isDone'];
    doneTime = json['doneTime'];
    isDoneStr = json['isDoneStr'];
    inspectorId = json['inspectorId'];
    checkUser = json['checkUser'];
    checkUserName = json['checkUserName'];
    checkType = json['checkType'];
    doneImageUrl = json['doneImageUrl'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['areaName'] = this.areaName;
    data['labelCode'] = this.labelCode;
    data['lat'] = this.lat;
    data['lon'] = this.lon;
    data['clockInNumber'] = this.clockInNumber;
    data['clockTime'] = this.clockTime;
    data['checkId'] = this.checkId;
    data['areaId'] = this.areaId;
    data['clocking'] = this.clocking;
    data['clockingStr'] = this.clockingStr;
    data['isDone'] = this.isDone;
    data['doneTime'] = this.doneTime;
    data['isDoneStr'] = this.isDoneStr;
    data['inspectorId'] = this.inspectorId;
    data['checkUser'] = this.checkUser;
    data['checkUserName'] = this.checkUserName;
    data['checkType'] = this.checkType;
    data['doneImageUrl'] = this.doneImageUrl;
    return data;
  }
}
